import { BaseEntity } from '@cool-midway/core';
import { Column, Entity, Index } from 'typeorm';

/**
 * paySetting模块-支付宝配置信息
 */
@Entity('pay_setting_alipay')
export class PaySettingAlipayEntity extends BaseEntity {
  @Index()
  @Column({ comment: '支付宝商户appId', length: 50 })
  aliAppId: string;

  @Column({ comment: '应用私钥', type: 'text' })
  privateKey: string;

  @Column({ comment: '支付宝公钥', type: 'text' })
  alipayPublicKey: string;

  @Index()
  @Column({ comment: '应用id', length: 50 })
  applicationId: string;

  @Column({ comment: '支付宝返回地址', length: 255 })
  returnUrl: string;

  @Column({ comment: '支付宝回调接口', length: 255 })
  notifyUrl: string;

  @Column({ comment: '微信appid', length: 50 })
  appid: string;

  @Column({ comment: '微信secret', length: 50 })
  secret: string;

  @Column({ comment: '微信商户id', length: 50 })
  mchid: string;

  @Column({ comment: '微信商户apiclient_key.pem', length: 50 })
  apiclient_key: string;

  @Column({ comment: '微信商户apiclient_cert', length: 50 })
  apiclient_cert: string;
 
}
